package Text1;

import java.util.Arrays;
import java.util.Comparator;

/*
 *@Student 张策
 */
public class text1 {
    public static void main(String[] args) {
//        int[]arr={1,2,6,5,8,4,3};
        Integer[]arr2={1,3,6,9,4,55};
        Arrays.sort(arr2, new Comparator() {
            @Override
            public int compare(Object o1,Object o2) {
                return (Integer) o2-(Integer) o1;
            }
        });
        System.out.println(Arrays.toString(arr2));
//        Arrays.sort(arr);
//        System.out.println(Arrays.toString(arr));
//        System.out.println((int) (Math.random() * 100-10+1)+10);
//        System.out.println(Math.abs(-9));
//        System.out.println(Math.pow(2, 4));
//        System.out.println(Math.ceil(-3.0001));
//        System.out.println(Math.floor(-3.0001));
//        System.out.println(Math.round(-1.5));
//        System.out.println(Math.sqrt(4));
    }
}
